//
//  AddBuddyController.h
//  Cocoa-Fetion
//
//  Created by Ronnie on 08-12-21.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "FXDataCenter.h"

@class MainAppController;
@class MainWindowController;

@interface AddBuddyController : NSObject {
	IBOutlet NSMatrix*		sendTypeRadio;
	IBOutlet NSTextField*	mobileNumberField;
	IBOutlet NSTextField*	fetionNumberField;
	IBOutlet NSTextField*	userNameField;
	IBOutlet NSTextField*	buddyShowNameField;
	IBOutlet NSComboBox*	groupInfo;
	
	//fetion data
	MainWindowController*			mainWindowCtrl;
	MainAppController*				mainAppCtrl;
	FXDataCenter *					myFetionData;
	FXTreeNode *					buddyList;
}

- (void)setMainWindowController:(MainWindowController*)p;
- (void)setMainAppController:(MainAppController*)p;
- (void)setGroupListAndUserInfo;

- (void)sendAddBuddyRequest;
- (IBAction)sendTypeChanged:(id)sender;
- (IBAction)groupInfoChanged:(id)sender;

@end
